<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>商品信息列表</title> 
<%@ include file="/page/include.jsp"%>
<link href="<%=basePath%>/statics/css/webform.css?v=20180104" rel="stylesheet" />
<script src="<%=basePath%>/statics/js/webform.js" type="text/javascript"></script>
<script src="<%=basePath%>/statics/js/bootstrap-filestyle.min.js" type="text/javascript"></script>
<script type="text/javascript">
	var SystemImgPath = '<%=PublicConfig.IMG_ROOT_URL%>';
</script>
</head>
<body class="nav-md">
    <div class="container body">
        <div class="main_container">
            <div class="framebody" role="main">
                <!-- <blockquote class="ui-elem-quote">
                    <h3>商品价格导入</h3>
                </blockquote> -->
                <div class="row" id="headDiv" style="height:60px;">
                    <div class="col-md-4" style="background-color:#337ab7;height: 34px;text-align: center;color: #FFFFFF;padding-top: 7px;" id="head1">1、下载模版</div>
                    <div class="col-md-4" style="background-color:#ddd;height: 34px;text-align: center;color: #FFFFFF;padding-top: 7px;" id="head2">2、导入模版</div>
                    <div class="col-md-4" style="background-color:#ddd;height: 34px;text-align: center;color: #FFFFFF;padding-top: 7px;" id="head3">3、完成</div>
                </div>
                <center>
                    <div class="row" id="span1" style="display:block;">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <form action="<%=basePath%>/productPrice/exportTemp" name="exportForm" id="exportForm" method="post">
                                <button id="btnExportTemp" type="button" class="btn btn-success">下载模版</button>
                                <button id="btnToImp" type="button" class="btn btn-success">上传文件</button>
                            </form>
                        </div>
                    </div>
                    <div class="row" id="span2" style="display:none;">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <form action="<%=basePath%>/productPrice/impPrice" name="impForm" id="impForm" method="post" enctype="multipart/form-data">
                                <div class="row">
                                    <div class="col-md-4">&nbsp;</div>
                                    <div class="col-md-4">
                                        <input name="file" id="file" type="file" />
                                    </div>
                                    <div class="col-md-4">&nbsp;</div>
                                </div>
                                <div class="row">
                                    <div class="col-md-4">&nbsp;</div>
                                    <div class="col-md-4">
                                        <button id="btnToDn" type="button" class="btn btn-success">下载模版</button>
                                        <button id="btnImpPrice" type="submit" class="btn btn-success">上传</button>
                                    </div>
                                    <div class="col-md-4">&nbsp;</div>
                                </div>
                                <c:if test="${step == 3 }">
                                    <div class="row">
                                        <div class="col-md-12"><label><font color="red">${error }</font></label></div>
                                    </div>
                                </c:if>
                            </form>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <font color="red">${msg }</font>
                        </div>
                    </div>
                </center>
            </div>
        </div>
    </div>
<script src="${rootPath}/js/product/productPrice_imp.js"></script>
<c:if test="${step == 3 }">
    <script type="text/javascript">
        showHead(3);
    </script>
</c:if>
</body>
</html>